package cn.iocoder.yudao.module.wine.controller.admin.agreement.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;

@Schema(description = "管理后台 - 协议配置新增/修改 Request VO")
@Data
public class AgreementSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "20001")
    private Long id;

    @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "内容不能为空")
    private String content;

    @Schema(description = "协议类型 1注册协议 2供求协议", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "协议类型 1注册协议 2供求协议不能为空")
    private Integer type;

}